package com.project.mapper;

import com.project.bean.SpeakBean;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface ISpeakMapper {
    /***
     * 添加
     * @param speak
     */
    @Insert("INSERT INTO t_speak(fk_userId,fk_productId,s_content,s_date)VALUES" +
            "(#{user.id},#{product.id},#{contend},#{speakDate})")
    public void add(SpeakBean speak);
}
